package com.matt.system.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.matt.system.domain.TSysmenu;

public interface SystemMenuDao {

	public abstract List<TSysmenu> findAll();
	
	public long getRows();
	
	public TSysmenu findById(String id);
	
	public TSysmenu findByParentId(String pid);
	
	public void update(TSysmenu sysmenu);
	
	public void delete(TSysmenu sysmenu);
	
	public void save(TSysmenu sysmenu);
	
	public List<TSysmenu> findPageByCriteria(final int pageNow,final int pageSize,DetachedCriteria detachedCriteria);
	
	public long getCountByCriteria(final DetachedCriteria detachedCriteria );

}